﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpPickInterface.h"
#include "IPolygonPickContext.h"

namespace gcmp 
{
    class Vector3d;
    class Coordinate3d;

    /// \brief 按矩形框拾取上下文，是按矩形框拾取的输入信息
    class GCMP_PICK_INTERFACE_EXPORT IRectPickContext : public IPolygonPickContext
    {
        DEFINE_CAST_DERIVED(gcmp::IRectPickContext, gcmp::IPolygonPickContext);
    public:
        /// \brief 产生默认的按矩形框拾取上下文
        /// \return 按矩形框拾取上下文
        static OwnerPtr<IRectPickContext> Create();

        /// \brief 设置拾取矩形框
        ///
        /// \param start 拾取矩形框起点
        /// \param end 拾取矩形框终点
        /// \param coordinate3d 拾取矩形框平面坐标系
        /// \return 成功返回true，失败返回false
        virtual bool SetRectangle(const Vector3d& start, const Vector3d& end, const Coordinate3d& coordinate3d) = 0;

    };

}

